<%@ tag pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="promotion" uri="http://com.primus.promotion/tag/core" %>
<%@ attribute name="fieldId" required="false" type="java.lang.Object" %>
<%@ attribute name="valueType" required="true" type="com.biz.primus.model.promotion.enums.PromotionScopeEnum" %>
<%@ attribute name="fieldName" required="true" type="java.lang.String" %>
<%@ attribute name="selectedField" required="false" type="java.lang.String" %>
<%@ attribute name="selectedFieldValue" required="false" type="java.lang.String" %>
<div class="col-xs-10 col-sm-5">
    <select id='${fieldId}' name="${fieldName}" data-placeholder="促销范围..." class="chosen-select form-control">
        <promotion:promotionScopeSelectTag selectScope="${selectedField}" />
    </select>
</div>
<div class="col-xs-10 col-sm-5">
    <input type="text" name="scopeIds" value="${selectedFieldValue}"/>
</div>